﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace VacationsRequest.Models
{
    public class Employee
    {
        public int ID { get; set; }
        public int IdTeam { get; set; }
        public int IdPosition { get; set; }
        public IEnumerable<SelectListItem> Managers { get; set; }
        public int IdManager { get; set; }

        public Guid IdUserApprover { get; set; }
        public IEnumerable<SelectListItem> Approvers { get; set; }

        public String Ced { get; set; }

        [Required(ErrorMessage = "First Name is required")]
        public String FirstName { get; set; }
        public String FirstLastName { get; set; }
        public String SecondLastName { get; set; }
        public Boolean Active { get; set; }
        public String Email { get; set; }
        public Int16 IdContractor { get; set; }

        [DataType(DataType.Date)]
        public DateTime StartDate { get; set; }

        [DataType(DataType.Currency)]
        public Decimal Rate { get; set; }

        [DataType(DataType.Currency)]
        public Decimal Salary { get; set; }
    }

    public class EmployeeList
    {
        public int ID { get; set; }
        public String Team { get; set; }
        public String Ced { get; set; }
        public String Name { get; set; }
        public Boolean Active { get; set; }
        public String Email { get; set; }

        [DataType(DataType.Date)]
        public DateTime StartDate { get; set; }
    }
    public class SysUsers
    {
        public Guid ID { get; set; }
        public String Name { get; set; }
    }

    public class ResetPaswordFields {
        [Required]
        public string UserName { get; set; }
    }

    public class EmployeeDBContext : DbContext
    {
        public DbSet<Employee> Employees { get; set; }
    }
}